home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / datasave.zip / DATASAVE.BAT next >
DOS Batch File  |  1993-01-26  |  2KB  |  79 lines

  1. @echo off
  2. @rem DataSave is a CADOC, (C)1993 Maritime Computer Services 
  3. @if "%1"=="/delon" goto off
  4. @if "%1"=="/DELON" goto off
  5. @if "%1"=="/show" goto show
  6. @if "%1"=="/SHOW" goto show
  7. @if "%1"=="/?" goto help
  8.  
  9. @echo+
  10. @echo+
  11. @echo DataSave 1.1 , Shareware "Erase Protect", (C)1993 Maritime Computer Services
  12. @echo+
  13. @echo Checking file size of DataSave archives...
  14. @echo+
  15. @echo Original        Archived Ratio                # of files in DataSave :   
  16. @pkzip -v c:\trashcan\datasave.mcs | find "%            "
  17. @if "%1"=="/destroy" goto daily
  18. @if "%1"=="/DESTROY" goto daily
  19. @if "%1"=="/Destroy" goto daily
  20. @if "%2"=="/destroy" goto daily
  21. @if "%2"=="/DESTROY" goto daily
  22. @if "%2"=="/Destroy" goto daily
  23.  
  24.  
  25.  
  26. @ goto del
  27.  
  28. :daily
  29. @echo Switch "/destroy" detectecd...
  30. @echo Erasing DataSave Archive...
  31. @erase c:\trashcan\datasave.mcs > nul
  32.  
  33.  
  34. :del
  35. doskey /reinstall > nul
  36. doskey del=ds $1 > nul 
  37. @goto end
  38. @echo Dos DEL Command : Disabled (Automatically Converted to DS command)
  39.  
  40. :show
  41. @echo+
  42. @echo Files currently available preserved in DataSave :            File Name
  43. @echo+
  44. @echo                                                              ---------
  45. pkzip -vd c:\trashcan\datasave.mcs | find "--w" | more
  46. @goto end
  47.  
  48. :off
  49. @echo+
  50. @echo Dos DEL Command : Enabled (Will erase data.  DS command must be used to archive).
  51. doskey /reinstall > nul
  52. @goto end
  53.  
  54. :help
  55. @echo+
  56. @echo+
  57. @echo Syntax :  Datasave [options]
  58. @echo+
  59. @echo Datasave alone redirects the DEL command and shows size of the DataSave archive  
  60. @echo+
  61. @echo Options :
  62. @echo+
  63. @echo           /delon       del command is Enabled
  64. @echo           /destroy     erases archive file (can be used daily, etc.)   
  65. @echo           /show        listing of all files contained in archive
  66. @echo           /?           shows this help screen
  67. @echo+
  68. @echo ╔═══════════════════════════════════════════════════════════════════════════╗ 
  69. @echo ║Used with the DS, UNDS, and DEL commands.  Type DS "filename.ext" to remove║
  70. @echo ║the file, and store it in the DataSave archive.  The DOS DEL command will  ║
  71. @echo ║also do this, unless you enable the /delon switch.  ERASE "filename.ext"   ║
  72. @echo ║will delete the file.  UNDS "filename.ext" will restore a DataSaved file.  ║
  73. @echo ╚═══════════════════════════════════════════════════════════════════════════╝
  74. @goto end
  75.  
  76. :end
  77. @echo+
  78. @echo Files Protected : All except for *.TMP and *.SWP extensions.
  79.